this._spawn();
}
- _spawn() {
+ _spawn(extraArgs = []) {
try {
- Gio.Subprocess.new(['ibus-daemon', '--xim', '--panel', 'disable'],
- Gio.SubprocessFlags.NONE);
+ let cmdLine = ['ibus-daemon', '--panel', 'disable', '--xim', ...extraArgs];
+ Gio.Subprocess.new(cmdLine, Gio.SubprocessFlags.NONE);
} catch (e) {
log(`Failed to launch ibus-daemon: ${e.message}`);
}
}
+ restartDaemon(extraArgs = []) {
+ this._spawn(['-r', ...extraArgs]);
+ }
+
_clear() {
if (this._panelService)
this._panelService.destroy();
this._currentEngineName = null;
this.emit('ready', false);
-
- this._spawn();
}
_onConnected() {